<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-商品规格管理">
</@frame.head>
<div class="page-container">

    <div class="cl pd-5 bg-1 bk-gray mt-20"> 
    <span class="l">
    <a href="javascript:;" onclick="add();" type="button" class="btn btn-primary radius"> 添加部门</a> 
    </span>
    </div>
    <table class="table table-border table-bordered table-bg">
        <thead>
        <tr  class="text-c">
            <th >部门编号</th>
            <th >部门名称</th>
            <th >机构名称</th>
            <th >创建时间</th>
            <th >创建人</th>
            <th >操作</th>
        </tr>
        </thead>
        <tbody >
         <#list pagination.list as list> 
         <tr  class="text-c">
            <td>${list.id}</td>
            <td>${list.name}</td>
            <td>${list.organization.name}</td>
            <td>${(list.createDate?string("yyyy-MM-dd"))!}</td>
            <td>${list.createId}</td>
            <td>
            <a href="javascript:;" type="button" onclick="editdepartment(${list.id?c});">修改</a>&nbsp;&nbsp;&nbsp;
            <a href="javascript:;" type="button" onclick="deldepartment(${list.id?c});">删除</a>&nbsp;&nbsp;&nbsp;
            </td>
         </tr>
         </#list>
        </tbody>
    </table>
    <div id="div_page" style="padding-top: 10px;float: right"></div>
</div>
</div>
<@frame.end "default">
</@frame.end>
</html>
<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/system/department.js"></script>
<script type="text/javascript">
var path="${contextPath}"; 
</script>